//ts定义一个元素类型为string类型的变量
function f() {
    var message = "Hello, world!";
    return message;
}
f();
console.log(f());
var myPush = function (arr, brr) {
    console.log(brr);
    for (var i = 0; i < arr.length; i++) {
        console.log(arr[i]);
    }
    return arr.length;
};
myPush([1, 2, 3, 4, 5, 6], "aaa");
var Greeter = /** @class */ (function () {
    function Greeter(message) {
        this.greeting = message;
    }
    Greeter.prototype.greet = function () {
        return "Hello, " + this.greeting;
    };
    return Greeter;
}());
var greeter = new Greeter("world");
console.log(greeter);
